A showcase of how to setup a test for JSP and discussion of that

http://blog.objectmentor.com/articles/2007/02/11/testing-guis-part-ii-jsp
http://blog.objectmentor.com/articles/2007/02/11/dependency-management-httpunit